package com.example.demo.service;

import aj.org.objectweb.asm.ConstantDynamic;
import com.example.demo.mapper.entity.*;

import java.util.List;

/**
 * @author Lucy
 * @create 2024-02-15 15:25
 */
public interface StudentTaskService {
    Task selectTaskById(int taskId);

    List<Task> getMORSTasksList(int isMainQuest);

    List<StudentTask> selectStudentTasksListByStudentId(int studentId);

    List<Question> selectQuestionListByBankId(int bankId);

    void insertStudentAnswerRecord(StudentAnswerRecord record);

    void updateCompletionStatus(int studentId, int taskId, int status);

    Item selectItemById(int itemId);

    void insertCheckinImage(CheckinImage image);

    void insertCheckinImageFileName(int imageId, String fileName);

    void uploadCheckinComments(int studentId, int taskId, String comments, int status);

    void receiveTaskReward(int studentId, int taskId);

    StudentTask selectStudentTask(int studentId, int taskId);

    CheckinImage selectCheckinImage(int studentId, int taskId, int itemId);

    void updateCheckinStatus(CheckinImage image);
}
